<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<title>字典管理</title> 
	[#include "../include/head.html" /]
	<script type="text/javascript" src="${res}/js_custom/base_dictionary_edit.js"></script>
</head>
<script type="text/javascript">
	var typeCode = '${type.dictTypeCode}';
</script>
<body>

	<!-- 搜索区域 -->
	<fieldset style="border: 1px solid #99BBE8; margin:10px 0; padding:5px;">
		<legend>调用方式</legend>
		<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#F4F4F4">
		  <tr>
		    <td width="15%" height="24" align="right">页面调用接口：</td>
		    <td width="85%" bgcolor="#FFFFFF"><input type="text" name="textfield" style="width:100%" value="/platform/dictionary/show_dic_by_type.json?typeId=${type.dictTypeCode}" onClick="$(this).select();"/></td>
		  </tr>
		  <tr>
		    <td height="24" align="right">java调用接口：</td>
		    <td bgcolor="#FFFFFF"><input type="text" name="textfield2" style="width:100%" onClick="$(this).select();" value='CacheCoreUtil.getDicType("${type.dictTypeCode}");' /></td>
		  </tr>
		</table>
     </fieldset>

	<!-- 按钮区域 -->
	<div id="button-bar">
	    <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" id="addBtn">新增</a>  
	    <a href="#" class="easyui-linkbutton" iconCls="icon-cut" plain="true" id="deleteBtn">删除</a>
	    <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" id="editBtn">编辑</a>
	    <a href="#" class="easyui-linkbutton" iconCls="icon-save" plain="true" id="saveBtn">保存</a>
	    <a href="#" class="easyui-linkbutton" style="display:none;" iconCls="icon-tabicons_03_04" plain="true" id="resetDataBtn">撤销</a>
	</div>
	[@p.table id="tableList" url="list_dic.json?searchParams[typeCode]=${type.dictTypeCode}" idField="dictCode" toolbar="button-bar" singleSelect="true" width="500"
		checkOnSelect="false" selectOnCheck="false" showHeader="true" title="数据字典列表"]
		[@p.column title="字典类型编码" field="dictTypeCode" hidden="true" /]
		[@p.column title="选择" field="dictCode" width="20%" checkbox="true" /]
		[@p.column title="字典名称" field="dictName" width="30%" /]
		[@p.column title="字典值" field="dictValue" width="30%" /]
		[@p.column title="排序" field="orderNum" width="20%" /]
	[/@p.table]
	
</body>
</html>